package com.bkgy.controller.acidefficiency.entity.pdo;

import lombok.Data;

import java.math.BigDecimal;

/**
 * 酸轧班组报表钢种生产效率柱形图加折线图
 */
@Data
public class SteelGradeRateRes implements Comparable<SteelGradeRateRes> {
    private String steelGrate;
    private BigDecimal outputWt;
    private BigDecimal rate;

    @Override
    public int compareTo(SteelGradeRateRes bar) {
        return this.outputWt.compareTo(bar.getOutputWt()) > 0 ? -1 : 1;
    }
}
